import 'babel-polyfill'
import 'es6-promise/auto'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VCharts from 'v-charts'
// import './assets/icon/iconfont.css'
import Vuex from 'vuex'
import moment from 'moment'
// import VueLazyLoad from 'vue-lazyload'
Vue.filter('dateformat', (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') => dataStr ? moment(dataStr).format(pattern) : '')
Vue.prototype.imgPath = 'https://abc-1256878718.cos.ap-shanghai.myqcloud.com/'
Vue.config.productionTip = false
Vue.use(VCharts)
Vue.use(Vuex)
Vue.use(ElementUI, { size: 'small', zIndex: 3000 })
// Vue.use(VueLazyLoad,{
//   error:'./static/error.png',
//   loading:'./static/loading.png',
//   attempt: 1
// })
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
